execute unless data storage vs:system chain.list[0] run return run function vs:item/use/use_fail

execute as @s[team=red] run function vs:chain/add {command:'function vs:item/geomagnetic_storm_generator/reaction {team:red}',id:"geomagnetic_storm_generator"}
execute as @s[team=blue] run function vs:chain/add {command:'function vs:item/geomagnetic_storm_generator/reaction {team:blue}',id:"geomagnetic_storm_generator"}
execute as @s[team=] run function vs:chain/add {command:'function vs:item/geomagnetic_storm_generator/reaction {team:no_team}',id:"geomagnetic_storm_generator"}

data modify storage vs:system chain.cant_push set value true

execute as @a at @s run playsound entity.enderman.stare master @s ~ ~ ~ 99999 2
effect give @a nausea 10 0 true